#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time   : 2023-08-29 22:02
# @Author : hard work
# @File    : my_loger.py
# @Description :
from colorama import init, Fore, Back, Style

init(autoreset=True)


class Log(object):

    #  前景色:红色  背景色:默认
    def red(self, s):
        return Fore.RED + s + Fore.RESET

    #  前景色:绿色  背景色:默认
    def green(self, s):
        return Fore.GREEN + s + Fore.RESET

    #  前景色:黄色  背景色:默认
    def yellow(self, s):
        return Fore.YELLOW + s + Fore.RESET

    #  前景色:蓝色  背景色:默认
    def blue(self, s):
        return Fore.BLUE + s + Fore.RESET

    #  前景色:洋红色  背景色:默认
    def magenta(self, s):
        return Fore.MAGENTA + s + Fore.RESET

    #  前景色:青色  背景色:默认
    def cyan(self, s):
        return Fore.CYAN + s + Fore.RESET

    #  前景色:白色  背景色:默认
    def white(self, s):
        return Fore.WHITE + s + Fore.RESET

    #  前景色:黑色  背景色:默认
    def black(self, s):
        return Fore.BLACK

    #  前景色:白色  背景色:绿色
    def white_green(self, s):
        return Fore.WHITE + Back.GREEN + s

    def dave(self, s):
        return Style.BRIGHT + Fore.GREEN + s

    def ERROR_LOG(self, error_info):
        print(self.red(error_info))

    def WARNNING_LOG(self, warnning_info):
        print(self.yellow(warnning_info))

    def NOTICE_LOG(self, notice_info):
        print(self.green(notice_info))
    def MAC_CHANGE(self, mac):
        print(self.white(mac))



if __name__ == '__main__':
    color = Log()
    print(color.red('I am red!'))
    print(color.green('I am gree!'))
    print(color.yellow('I am yellow!'))
    print(color.blue('I am blue!'))
    print(color.magenta('I am magenta!'))
    print(color.cyan('I am cyan!'))
    print(color.white('I am white!'))
    print(color.white_green('I am white green!'))
    print(color.dave("www.cndba.cn"))
    print(color.ERROR_LOG("a"))
